﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using Adex;
using MediaMonitor.Common;

namespace MediaMonitor.Admin
{
    public partial class ChangeRole : Adex.BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
               
            }
        }

        protected void radGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            DataTable dt = dt = VSiteUser.Query().SetSelectList("*, CONVERT(VARCHAR, DateAdded, 101) AS LastModifiedDate, CONVERT(VARCHAR, ValidTo, 101) AS ValidToDate, CONVERT(VARCHAR, ValidFrom, 101) AS ValidFromDate").ORDER_BY("UserName").ExecuteDataSet().Tables[0];
            radGrid.DataSource = dt;
            
        }

    }
}